package com.jeesit.cloud.spot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeesit.cloud.model.HedgingScheme;
import com.jeesit.cloud.spot.mapper.HedgingSchemeMapper;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeesit.cloud.spot.service.IHedgingSchemeService;
import org.springframework.stereotype.Service;
import com.jeesit.cloud.dto.HedgingSchemeDto;

import javax.annotation.Resource;
import java.util.List;

/**
 *  服务实现类
 *
 * @author lss
 * @since 2024-01-25
 */
@Service
public class HedgingSchemeServiceImpl extends ServiceImpl<HedgingSchemeMapper, HedgingScheme> implements IHedgingSchemeService {

    @Resource
    private HedgingSchemeMapper mapper;

    @Override
    public Page<HedgingScheme> page(Page<HedgingScheme> p, HedgingSchemeDto dto) {
        return mapper.selectCustomPage(p,dto);
    }

    @Override
    public List<HedgingScheme> list(int i, HedgingSchemeDto dto) {
        return mapper.selectCustomList(i,dto);
    }


}
